﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VoucherAdd.aspx.cs" Inherits="GRLMS.CaiWu.VoucherMgr.VoucherAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
      <link href="../../lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
    <link href="../../themes/gray/skin.css" rel="stylesheet" type="text/css" />
    <script src="../../lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../../lib/ligerUI/js/core/base.js" type="text/javascript"></script>
    <script src="../../lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script> 
     <script src="../../lib/ligerUI/js/plugins/ligerMenu.js" type="text/javascript"></script>
    <script src="../../lib/ligerUI/js/plugins/ligerMenuBar.js" type="text/javascript"></script>
    <script src="../../lib/ligerUI/js/plugins/ligerToolBar.js" type="text/javascript"></script>
    
    <script src="../../lib/ligerUI/js/plugins/ligerDrag.js" type="text/javascript"></script>
    <script src="../../lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
    <script src="../../lib/ligerUI/js/plugins/ligerResizable.js" type="text/javascript"></script>
    <script type="text/javascript">
     
//        function itemclick(item)
//        {
//             $.ligerDialog.open({ title:'凭证列表',height: 650, url: 'VoucherList.aspx', width: 800, showMax: true, showToggle: true, showMin: true, isResize: true, slide: false });
//        }
//        
//        $(function ()
//        {

//            $("#toptoolbar").ligerToolBar({ items: [
//                { text: '凭证列表', click: itemclick }
//               
//            ]
//            });
//        });
        
        
        
    </script>
    <style  type="text/css">
       .table-voucher { border:1px solid #666; margin:10px 0; table-layout: fixed; word-wrap: break-all;}
	.table-voucher th { border:1px solid #666; text-align: center; }
	.table-voucher td { border:1px solid #666; vertical-align:middle; }
	.v-head { background:url(../images/bg-voucher-head.jpg) 100% 50% no-repeat;}
	.v-body { background:url(../images/bg-voucher-body.jpg) 100% 0 repeat-y;  letter-spacing:7px; }
       
       
    </style>
    
</head>
<body>
    <form id="form1" runat="server">
    <%--<div id="toptoolbar"></div>--%>
    <div style="width:100%; padding:6px;">
        业务日期：<asp:TextBox ID="txt_vDate" runat="server" onfocus="setday(this)" Width="70px"></asp:TextBox>
    【<asp:Label ID="lbl_currPeriodYear" runat="server" Text=""></asp:Label>年<asp:Label ID="lbl_currPeriodTerm" runat="server" Text=""></asp:Label>
    期】

<asp:HiddenField ID="hid_currPeriodStartDate" runat="server" />
    <asp:HiddenField ID="hid_currPeriodEndDate" runat="server" />
     &nbsp;&nbsp;&nbsp;&nbsp; 凭证字：<asp:DropDownList ID="DDL_vCodeZ" Width="40px" runat="server">
           <asp:ListItem Value="记">记</asp:ListItem>
           <asp:ListItem Value="收">收</asp:ListItem>
           <asp:ListItem Value="付">付</asp:ListItem>
           <asp:ListItem Value="转">转</asp:ListItem>
    </asp:DropDownList>
    &nbsp; 号：<asp:TextBox ID="txt_vCodeH" Width="40px" ReadOnly="true" runat="server"></asp:TextBox>
    &nbsp;&nbsp; 附单据张数：<asp:TextBox ID="txt_attNums" Width="50px" runat="server" Text="1"></asp:TextBox>
 <br />
 <br />
  <div class="blur-div">

<table border="0" cellspacing="0" cellpadding="0" width="700px" >
  <tr>
    <td>摘要：</td>
    <td colspan="3">
        <asp:TextBox ID="txt_Astract" onchange="changeFlag(1)"  runat="server" width="150px" ></asp:TextBox>
        <asp:DropDownList ID="DDL_Astract" runat="server" onchange="ChangeAstract()" Width="120px">
        </asp:DropDownList>
    </td>
    <td>科目：</td>
    <td colspan="3"><input type="text" style="width:120px;" id="txt_AccType" onkeydown="return false;" onclick="onbtclick()" />   <input type="button" class="gr-button" value="选择科目" style="width:65px;height:24px" />&nbsp;&nbsp;
      <input type="radio" name="jiedai" id="rad_Jie" checked="checked" onclick="changeFlag(3)" />
        借&nbsp;&nbsp;
      <input type="radio" name="jiedai" id="rad_Dai" onclick="changeFlag(4)" />
        贷 </td>
    </tr>
  <tr>
    <td width="10%">金额：</td>
    <td colspan="4"><asp:TextBox ID="txt_Originalamt" Width="80px" runat="server" onchange="changeFlag(5)"  style="text-align:right;" Text="0.00"></asp:TextBox></td>
    <td width="18%">&nbsp;</td>
    <td width="10%">&nbsp;</td>
    <td width="15%"><asp:TextBox ID="txt_BankEr" onchange="changeFlag(8)" Width="80px" Text="100.0000" AutoPostBack="false" runat="server" Enabled="false"  style="display:none;" ></asp:TextBox></td>
  </tr>
  <tr style="height:25px;">
    <td colspan="8" class="text-c"><input type="button" class="gr-button" value="新增行" style="width:70px;height:24px" /></td>
    </tr>
</table>

</div>

<div id="VList" style="padding-bottom:8px;">
   <table id="dataTB" border="0" cellspacing="0" cellpadding="0" width="780px" class="table-voucher">   
           <tr style="height:24px;">
               
               <th>摘要</th>
               <th width="90">科目</th>
               <th  width="80">金额</th>
               <th width="135">借方金额</th>
               <th width="135">贷方金额</th>
               <th width="85px">操作</th>
               </tr>
               <tr style="height:24px;">
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td align="right"></td>
                <td  align="right"  class="v-body"></td>
                <td  align="right"  class="v-body"></td>
                <td align="center"><input type="button" class="gr-button" value="删除行" style="width:70px;height:20px" /></td>
               </tr>
               <tr style="height:24px;">
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td align="right"></td>
                <td  align="right"  class="v-body"></td>
                <td  align="right"  class="v-body"></td>
                <td align="center"><input type="button" class="gr-button" value="删除行" style="width:70px;height:20px" /></td>
               </tr>
               <tr>
                
                <td><strong>合计</strong></td>
                <td>&nbsp;</td>
                <td align="right">&nbsp;</td>
                <td  align="right"  class="v-body"></td>
                <td  align="right"  class="v-body"></td>
                <td>&nbsp;</td>
              </tr>
             </table>

</div>

    &nbsp;&nbsp;主管：<asp:TextBox ID="txt_ZhuGuang" runat="server" Width="80px"></asp:TextBox>
    &nbsp;&nbsp;记账：<asp:TextBox ID="txt_JiZhang" runat="server" Width="80px"></asp:TextBox>
    &nbsp;&nbsp;复核：<asp:TextBox ID="txt_FuHe" runat="server" Width="80px"></asp:TextBox>
    &nbsp;&nbsp;制单：<asp:TextBox ID="txt_JiDuan" runat="server" Width="80px" ReadOnly="true"></asp:TextBox>
    &nbsp;&nbsp;出纳：<asp:TextBox ID="txt_ChuNa" runat="server" Width="80px"></asp:TextBox>
    &nbsp;&nbsp;经办：<asp:TextBox ID="txt_JingBan" runat="server" Width="80px"></asp:TextBox>

<br />
<br />
<div class="text-c">
<input type="button" class="gr-button" value="保存" style="width:65px;height:24px" /> &nbsp;&nbsp;&nbsp;&nbsp;
<input type="button" class="gr-button" value="保存并新增" style="width:100px;height:24px" />

   
  
        
             
    </div>
    </form>
</body>
</html>
